﻿using System;
using System.Collections.Generic;

namespace SharpSqlAnalyzer.util
{
	// Token: 0x0200007B RID: 123
	internal class keywordMap
	{
		// Token: 0x060002F2 RID: 754 RVA: 0x002F9423 File Offset: 0x002F7623
		public virtual void setDbKeywordList(string dbVersion, keywordList keywordList)
		{
			if (dbVersion != null && !this.keywordMaps.ContainsKey(dbVersion) && keywordList != null)
			{
				this.keywordMaps[dbVersion] = keywordList;
			}
		}

		// Token: 0x17000044 RID: 68
		// (get) Token: 0x060002F3 RID: 755 RVA: 0x002F9446 File Offset: 0x002F7646
		public virtual List<string> DbVersions
		{
			get
			{
				return new List<string>(this.keywordMaps.Keys);
			}
		}

		// Token: 0x060002F4 RID: 756 RVA: 0x002F9458 File Offset: 0x002F7658
		public virtual keywordList getDbKeywordList(string dbVersion)
		{
			if (this.containsVersion(dbVersion))
			{
				return this.keywordMaps[dbVersion];
			}
			return null;
		}

		// Token: 0x060002F5 RID: 757 RVA: 0x002F9471 File Offset: 0x002F7671
		public virtual bool containsVersion(string version)
		{
			return this.keywordMaps.ContainsKey(version);
		}

		// Token: 0x0400108E RID: 4238
		private Dictionary<string, keywordList> keywordMaps = new Dictionary<string, keywordList>();
	}
}
